﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GloryofKing
{
    /// <summary>
    /// 英雄的基础属性
    /// </summary>
    public class HeroBase
    {
        // HP生命值
        private int maxHP;
        // MP法术值
        private int maxMP;
        // 高度像素
        private int height;   
        // 宽度的像素
        private int width;

        public HeroBase(int maxHP, int maxMP,int height,int width)
        {
            this.maxHP = maxHP;
            this.maxMP = maxMP;
            this.height = height;
            this.width = width;
        }

        public string ShowHP()
        {
            return "生命值:"+maxHP;
        }
        public string ShowMP()
        {
            return "魔法值:" + maxMP;
        }
        public string Show()
        {
            return "显示：" + height + "*" + width;
        }
    }
}
